package com.bjsxt.pojo;

import java.util.List;

public class TreeA {

    private  Integer  id;

    private  String  text;

    private   String  state;

    private   String  url;
    //保存子菜单的节点对象
    private List<TreeA> children;

    public List<TreeA> getChildren() {
        return children;
    }

    public void setChildren(List<TreeA> children) {
        this.children = children;
    }

    public TreeA(){}

    public TreeA(Integer id, String text, String state,String  url) {
        this.url=url;
        this.id = id;
        this.text = text;
        this.state = state;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TreeA{" +
                "id=" + id +
                ", text='" + text + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
